<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>KLIPSE: a simple and elegant online cljs compiler and evaluator</title>
<link rel='shortcut icon' type='image/x-icon' href='img/klipse.png' />
<link rel="stylesheet" type="text/css" href="css/codemirror.css">
</head>
<body>

<pre><code class="klojure">
    (map inc [1 2 3])
</code></pre>
<pre><code class="klojure">
    (loop []
    (recur))
</code></pre>
<pre><code class="klojure">
    (defn foo []
    (when (> 2 1) (foo)))
</code></pre>

<pre><code class="klojure">
    (reduce (fn [a b] (when (= a b) (+ a b))) (range))
</pre></code>

<pre><code class="clojure">
    (loop [x 1]
      (if (not= x 19)
          (recur x)
              (str "hello" 199)))
</code></pre>
<p>
In the next snippet, guard should be displayed.
</p>
<pre><code class="clojure" data-compile-display-guard="true">
    (loop [x 1]
      (if (= x 19)
          (recur x)
              (str "hello" 199)))
</code></pre>


<pre><code class="klojure" data-print-length="12">
    (range)
</code></pre>

<script>
    window.klipse_settings = {
    codemirror_options_in: {
    lineWrapping: true,
    lineNumbers: true,
    autoCloseBrackets: true
    },
    codemirror_options_out: {
    lineWrapping: true
    },
    selector: '.klojure',
    selector_eval_markdown: '.eval-markdown',
    selector_eval_html: '.eval-html',
    selector_eval_lambdaway: '.lambda',
    selector_eval_js: '.javascript',
    selector_compile_js: '.compile_js',
    selector_eval_scheme: '.scheme',
    selector_js: '.clojure'
    };
    </script>
    <script src="plugin/js/klipse_plugin.js"></script>
    </body>
    </html>
